package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-05-15
 * Time: 21:28
 */
public class ProtectTest {
    //在不同包中，被protected修饰的成员变量或方法，只能在该包的子类中才能使用
    protected int c = 2012;
    public final void test() {
        System.out.println("...");
    }
}
